12 PRINT TAB(21);"OPEN LINEAR REGRESSION ANALYSIS OPEN"
15 PRINT TAB(21);"SCREEN";STRING$(28,205);"LOAD"
20 PRINT TAB(7);: INPUT "What is the name of the DATAFILE you wish to analyze? ",FILE$: ON ERROR GOTO 765
30 OPEN FILE$ FOR INPUT AS #1: INPUT #1,A,C
32 PRINT: INPUT "Are you planning on performing any DATA TRANSFORMATIONS with this data? ",ATRN$
34 IF ATRN$="N" OR ATRN$="n" THEN 35 ELSE IF ATRN$="y" OR ATRN$="Y" THEN INPUT " How many of these DATA TRANSFORMATIONS will you SAVE in this datafile? ",NTRN ELSE BEEP: GOTO 32
35 AN=NTRN+A: IF AN>28 THEN BEEP: PRINT TAB(10);"This database will only hold another";28-A;"samples.": GOTO 34
40 DIM D(AN,C),CS(AN,C),ST(A,C),XT(A),XT2(A),N$(AN),X(AN),X2(AN),SD(AN),MD(AN),T(AN),B(A)
45 FOR T=1 TO A: INPUT #1, T(T): NEXT
50 FOR T=1 TO A: FOR Z=1 TO C: INPUT #1, D(T,Z): NEXT: NEXT
60 FOR T=1 TO A: FOR Z=1 TO T(T): INPUT #1, CS(T,Z): NEXT: NEXT
70 FOR T=1 TO A: INPUT #1, N$(T),X(T),X2(T),MD(T),SD(T): NEXT: CLOSE #1
80 PRINT :PRINT " What are the SAMPLE NUMBERS of the 2 groups you want to compare?": PRINT TAB(8);"Independent sample:";TAB(45);"Dependent sample:"
90 PRINT TAB(10);: INPUT;"",NS1: IF NS1<=A THEN PRINT " `";N$(NS1);"'"; ELSE BEEP: PRINT TAB(21);FILE$;" has only";A;"samples.": GOTO 90
95 PRINT TAB(50);: INPUT;"",NS2: IF NS2<=A THEN PRINT " `";N$(NS2);"'": ELSE BEEP: PRINT TAB(21);FILE$;" has only";A;"samples.": GOTO 95
100 IF T(NS1)<>T(NS2) THEN PRINT: BEEP: PRINT "These 2 samples do not have the same number of elements----":PRINT TAB(37);"a regression analysis cannot be performed.":GOTO 80
105 XC=0: N=T(NS1): A1=0: A2=0
110 IF ATRN$<>"y" AND ATRN$<>"Y" THEN 350 ELSE PRINT: INPUT "Do you want DATA TRANSFORMATIONS prior to regression analysis? (Y or N) ",A$
120 IF A$="n" OR A$="N" THEN 350 ELSE IF A$="y" OR A$="Y" THEN 130 ELSE BEEP: GOTO 110
130 CLS: PRINT TAB(15); "Choose the appropriate data TRANSFORMATIONS:":PRINT
150 PRINT TAB(20);"1.) X' = x (no transformation)"